﻿#region Licence
// <copyright file="Interfaces/IServiceNotification.cs" company="Kopigi">
// Copyright © Kopigi 2014
// </copyright>
// ****************************************************************************
// <author>Marc PLESSIS</author>
// <date>10/10/2014</date>
// <project>Nentang.wpf</project>
// <web>http://nentang.codeplex.com</web>
// <license>
// The MIT License (MIT)
// 
// Copyright (c) 2013 Marc Plessis
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// 
// </license>
#endregion
#region using

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Database.POCO;
using Interfaces.Enums;

#endregion

namespace Interfaces
{
    /// <summary>
    /// Gestion des notifications
    /// </summary>
    public interface IServiceNotification
    {
        /// <summary>
        /// Permet d'enregistrer une notification
        /// </summary>
        void SaveNotification(string message, ValueNotificationEnum type, [CallerFilePath] string source = "", [CallerMemberName] string member = "");

        /// <summary>
        /// Permet d'enregistrer une notification interactive pour un utilisateur
        /// </summary>
        void SaveNotificationUser(string sujet, string message, ValueNotificationEnum type, Int64 idObject, SysUtilisateur utilisateur, TypeModulesEnum module,
            [CallerFilePath] string source = "", [CallerMemberName] string member = "");

        /// <summary>
        /// Permet de renvoyer le nombre de notifications courantes
        /// </summary>
        /// <returns>Nombre de notifications non lues</returns>
        int GetCountCurrentNotification();

        /// <summary>
        /// Permet de renvoyer toutes les notifications systémes
        /// </summary>
        /// <returns>La liste des notifications systéme</returns>
        List<SysNotification> GetNotificationsSystem();

        /// <summary>
        /// Permet de renvoyer toutes les notifications de l'utilisateur courant
        /// </summary>
        /// <returns>Liste des notifications utilisateur</returns>
        List<SysNotificationUser> GetNotificationForCurrentUser();
    }
}
